// Hello.cpp : Implementation of CHello

#include "stdafx.h"
#include "Hello.h"


// CHello


STDMETHODIMP CHello::sayHello(BSTR name, BSTR* message)
{	
	BSTR buffer = (BSTR)::CoTaskMemAlloc(256);
	if(buffer == NULL)
		return E_FAIL;	
	::wsprintf(buffer,_T("Hello %s"), name);
	MessageBox(NULL,name,buffer,NULL);
	*message = buffer;
	return S_OK;
}
